import model.Repo;
import org.codehaus.jackson.map.ObjectMapper;
import util.ReadJson;

import java.io.IOException;
import java.security.PrivateKey;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-3-20
 * Time: 下午3:50

 */
public class Test {


    public static void main(String[] args) {

        String str = ReadJson.getJsonStr("resource/testresult.json");
        ObjectMapper mapper = new ObjectMapper();
        try {
            Repo repo = mapper.readValue(str,Repo.class);
            System.out.println(repo.getResponse().getDocs().get(2).getLang());
        } catch (IOException e) {
            e.printStackTrace();
        }



    }
}
